import React from 'react';
import LineAreaChart from './LineAreaChart';

export default class PracticeLineAreaChart extends LineAreaChart {

	constructor(props) {
		super(props);
	}

	/**
	 * @override
	 */
	getSeries(props) {
		let { dataSource } = props;

		return [{
			name: '人数',
			type: 'area',
			data: dataSource.peopleCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '次数',
			type: 'line',
			yAxis: 2,
			data: dataSource.timeCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}, {
			name: '关卡数',
			type: 'line',
			yAxis: 2,
			data: dataSource.missionCountSeries,
			tooltip: {
				valueSuffix: ''
			}
		}];
	}
}
